package at.fhooe.mcm.logic.sensors.events;

import at.fhooe.mcm.logic.event.Event;
import at.fhooe.mcm.logic.event.EventType;

public class SensorAttachEvent extends Event
{
	private static final long		serialVersionUID	= 5577812645369325203L;
	public static final EventType	TYPE				= new EventType("SensorAttached");

	private String					m_name;
	private String					m_type;
	private boolean					m_isPublic;
	private boolean					m_isPull;
	private int						m_updatePeriod;

	@Override
	public EventType getType()
	{
		return TYPE;
	}

	public SensorAttachEvent(String _sensorType, String _sensorName, boolean _isPublic, boolean _isPull,
			int _updatePeriod)
	{
		m_type = _sensorType;
		m_isPublic = _isPublic;
		m_isPull = _isPull;
		m_name = _sensorName;
		m_updatePeriod = _updatePeriod;
	}

	public String getEntityType()
	{
		return m_type;
	}

	public String getSensorName()
	{
		return m_name;
	}

	public boolean isPublic()
	{
		return m_isPublic;
	}

	public boolean isPull()
	{
		return m_isPull;
	}

	public int getUpdatePeriod()
	{
		return m_updatePeriod;
	}

}
